package com.example.springboot.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.springboot.entity.MenuEntity;
import com.example.springboot.entity.SubmenuEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "父子路由关联返回参数")
public class RoutesResp {

    @Schema(description = "序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "一级路由ID")
    @TableField("submenuId")
    private Integer submenuId;

    @Schema(description = "一级路由详细")
    private SubmenuEntity submenuEntity;

    @Schema(description = "二级路由ID")
    @TableField("menuId")
    private Integer menuId;

    @Schema(description = "二级路由详细")
    private MenuEntity menuEntity;

}
